package com.sansecy.mocklocationtest;

import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;

public class PackageHelper {
    public static String getPackageName(PackageManager packageManager, PackageInfo packageInfo) {
        return packageInfo.applicationInfo.loadLabel(packageManager).toString();
    }
    public static Drawable getPackageIcon(PackageManager packageManager, PackageInfo packageInfo) {
        return packageInfo.applicationInfo.loadIcon(packageManager);
    }

}
